package com.bj.zspace.bytebuddy.normal_test;

/**
 * @Author:liuwenqing
 * @Date:2025/1/7 10:54
 * @Description:
 **/
public class HardcodedFrameworkImpl implements Framework{
    @Override
    public <T> T secure(Class<T> type) {

        if (type == Service.class) {
            return (T) new SecuredService();
        } else {
            throw new IllegalArgumentException("Unknown:" + type);
        }
    }
}
